import request from '@/utils/request'

/**
 * 登录
 */
export const login = data => {
  return {
    "token": "5d8c2b25-ccc6-47de-ab8f-74f7277a7da2"
  }
}

/**
 * 获取用户信息
 */
export const getUserInfo = () => {
  return {
    "role": [
      {
        "id": "1",
        "title": "超级管理员"
      }
    ],
    "_id": "64cd58c03b57cf53cb65078b",
    "id": "612710a9ec87aa543c9c3420",
    "username": "super-admin",
    "title": "超级管理员",
    "avatar": "https://m.imooc.com/static/wap/static/common/img/logo-small@2x.png",
    "permission": {
      "menus": [
        "userManage",
        "roleList",
        "permissionList",
        "articleRanking",
        "articleCreate"
      ],
      "points": [
        "distributeRole",
        "importUser",
        "removeUser",
        "distributePermission"
      ]
    }
  }
}
